This is an image what exactly, i am facing the problem "type 'string null' is not assignable to type 'string'. typescript"
I simply add This =>
localItem: string | null;
and finally it's working!
add '?' after type localItem:string?;
localItem:string?;